import vue from 'vue'
import vuex from 'vuex'

vue.use(vuex)

const store = new vuex.Store({
  state: {
    count: 0
  },
  mutations: {
    increment (state) {
      setTimeout(() => {
        state.count++
      }, 2000)
    }
  }
})

export default store